import {v4 as uuidv4} from 'uuid'
export const getUserTempId = ()=>{
    //1.先从本地储存当中获取
    let userTempId = localStorage.getItem("userTempId")
    //2.如果没有就生成一份
    if(!userTempId){
        localStorage.setItem('userTempId',uuidv4())
    }
    return userTempId//返回数据
}